Revert network-nat script changes introduced by 16739:33dcf04d77152.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 18 Jan 2008 13:40:22 +0000 (13:40 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 18 Jan 2008 13:40:22 +0000 (13:40 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/examples/network-nat

index 165d92ca6826867cb492d96534a0982cb8690ed5..62d2b0c259722771b927475a700af0b398652eb2 100644 (file)
@@ -43,9 +43,9 @@ fi
 
 function dhcp_start()
 {
-  if ! grep -q "subnet 192.0.2.0" "$dhcpd_conf_file"
+  if ! grep -q "subnet 10.0.0.0" "$dhcpd_conf_file"
   then
-    echo >>"$dhcpd_conf_file" "subnet 192.0.2.0 netmask 255.255.255.0 {}"
+    echo >>"$dhcpd_conf_file" "subnet 10.0.0.0 netmask 255.255.0.0 {}"
   fi
 
   "$dhcpd_init_file" restart
@@ -55,7 +55,7 @@ function dhcp_start()
 function dhcp_stop()
 {
   local tmpfile=$(mktemp)
-  grep -v "subnet 192.0.2.0" "$dhcpd_conf_file" >"$tmpfile"
+  grep -v "subnet 10.0.0.0" "$dhcpd_conf_file" >"$tmpfile"
   if diff "$tmpfile" "$dhcpd_conf_file" >&/dev/null
   then
     rm "$tmpfile"